package com.yztstudy.controller;


import com.yztstudy.dto.Result;
import com.yztstudy.entity.ShopType;
import com.yztstudy.service.IShopTypeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * shop_type的表示层
 */
@RestController
@RequestMapping("/shop-type")
public class ShopTypeController {
    @Resource
    private IShopTypeService typeService;

    /**
     * TODO 查询所有的店铺类型
     * @return 商铺类型详情数据
     */
    @GetMapping("list")
    public Result queryTypeList() {
        return typeService.queryAllTypes();
    }
}
